cc.Class({
    extends: cc.Component,

    properties: {
        ui_version_label: cc.Label,
    },

    onLoad () {
        if (Global.Args.code){
            // this.ui_version_label.string = JSON.stringify(Global.Args);
            // this.getaccess_token(Global.Args.code);
        }
        this.initUI();
    },
    initUI(){
        this.ui_version_label.string = Global.SystemInfoModel.system_version;
    },
    onClickTest(event,customEventData){
        Global.AudioManager.playSound();
        if (customEventData == 'account'){
            Global.LayerManager.create('prefabs/login/AccountLayer','AccountLayer');
        }

    },


});
